<?php
/**
 * GeryEngine
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this release in the file LICENSE
 *
 * @copyright  Copyright (c) 2007 Arjen Brouwer
 * @license    New BSD License
 * @author     Arjen Brouwer
 */

class GeryFloat extends GeryBaseType {
	
	public function to_int($val) {
		return (int)$val;
	}
	
	public function round($val, $parameters) {
		$precision = (count($parameters) > 0)
			? (int)$parameters[0]
			: 0;
			
		return round($val, $precision);
		
	}
}
?>